package com.wicket.okrframework.biz.service.nb;

import com.wicket.okrcomponent.common.annotations.BanAuto;
import com.wicket.okrframework.biz.service.dto.req.QueryPositionMergeFieldsDetailReqDto;
import com.wicket.okrframework.biz.service.dto.res.QueryPositionMergeFieldsDetailRespDto;
import org.apache.skywalking.apm.toolkit.trace.Tag;
import org.apache.skywalking.apm.toolkit.trace.Tags;
import org.apache.skywalking.apm.toolkit.trace.Trace;
import org.springframework.stereotype.Service;

/**
 * @author ： 手工接入方法
 * @since 2022/5/28 15:32
 *
 *
 * @version 1.0
 */
@Service
public class NbPosition {
    /**
     * code:mergeChangeColumnDetail
     * name:M职务合并字段（特殊方法）
     * desc:undefined
     **/
    @BanAuto
    @Trace(operationName = "M职务合并字段（特殊方法）")
    @Tags({@Tag(key = "参数", value = "arg[0]"),
            @Tag(key = "返回值", value = "returnedObj")})
    public QueryPositionMergeFieldsDetailRespDto queryPositionMergeFieldsDetail(QueryPositionMergeFieldsDetailReqDto reqDto) {
        QueryPositionMergeFieldsDetailRespDto retData = new QueryPositionMergeFieldsDetailRespDto();
//        retData.setPositionGradeId(reqDto.getPositionGradeId());
//        for (BaseChangeColumnDto oneBase : reqDto.getBaseChangeColumnList()) {
//            String property = oneBase.getPropertyCode();
//            String value = oneBase.getMetaDataColumnContent();
//            if (property.equals("stationId")) {
//                retData.setStationId(value);
//            } else if (property.equals("typeDictionaryId")) {
//                retData.setTypeDictionaryId(value);
//            } else if (property.equals("positionDutyDesc")) {
//                retData.setPositionDutyDesc(value);
//            } else if (property.equals("positionTargetDesc")) {
//                retData.setPositionTargetDesc(value);
//            }
//        }
        return retData;
    }
    //手工接入方法
}
